﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPClient.ViewModel
{
    class InfoCategoryViewModel : ViewModelBase
    {
        #region Fields and RelayCommands

        IEnumerable<InfoElementViewModel> _infoElements;
        string _categoryName;

        #endregion

        #region Public interface

        public InfoCategoryViewModel(string categoryName, bool isUserGenerated)
        {
            this.CategoryName = categoryName;
        }

        #endregion

        #region Properties

        public IEnumerable<InfoElementViewModel> InfoElements
        {
            get { return _infoElements; }
            set
            {
                if (value == _infoElements)
                    return;
                _infoElements = value;
                OnPropertyChanged("InfoElements");
            }
        }
        public string CategoryName
        {
            get { return _categoryName; }
            set
            {
                if (value == _categoryName)
                    return;
                _categoryName = value;
                OnPropertyChanged("CategoryName");
            }
        }

        #endregion
    }
}
